<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
  <head>
    <title>新增优惠券</title>
    <base href="<%=basePath%>">
    <script src="lib/timePicker/WdatePicker/WdatePicker.js"></script>
    
    <link href="lib/bootstrap-3.3.5/css/bootstrap-multiselect.css" rel="stylesheet"  />
    
  </head>
  
  <body>
  
  	<jsp:include page="common.jsp"></jsp:include>
  	<script src="lib/bootstrap-3.3.5/js/bootstrap-multiselect.min.js"></script>
	
  	
  	<div class="secMenu-content">
  		<div class="clearfix"><div class="col-sm-offset-1 col-sm-2 sheet-title">新增优惠券</div></div>
  		
  		<form class="form-horizontal" role="form">
		   <div class="form-group">
		    <label class="col-sm-4 control-label">优惠券名称<span class="fill-must">*</span></label>
		    <div class="col-sm-5">
		        <input type="text" class="form-control" placeholder="">
		    </div>
		  </div>
		 
		 <div class="form-group">
		    <label class="col-sm-4 control-label">金额<span class="fill-must">*</span></label>
		    <div class="col-sm-5">
		        <input type="text" class="form-control" placeholder="">
		    </div>
		  </div>
		  
		  <div class="form-group">
		    <label class="col-sm-4 control-label">使用条件<span class="fill-must">*</span></label>
		    <div class="col-sm-8">
		        <label class="radio-inline">
				  <input type="radio" name="condition" id="" value="" checked="checked"> 不限
				</label>
				<label class="radio-inline">
				  <input type="radio" name="condition" id="" value="" style="margin-top: 10px;"> 满
				  <input type="text" class="form-control sheet-searchInput2"  placeholder="" > 元可使用
				</label>
		    </div>
		  </div>
		  
		  <div class="form-group">
			    <label class="col-sm-4 control-label">车型<span class="fill-must">*</span></label>
			    <div class="col-sm-8">
			  	  	<label class="checkbox-inline">
					  <input type="checkbox" name="carType" id="" value="" checked="checked"> 全部
					</label>
					 <label class="checkbox-inline">
					  <input type="checkbox" name="carType" id="" value=""> E20
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" name="carType" id="" value=""> A08
					</label>
					 <label class="checkbox-inline">
					  <input type="checkbox" name="carType" id="" value=""> K10
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" name="carType" id="" value=""> K11
					</label>
					 <label class="checkbox-inline">
					  <input type="checkbox" name="carType" id="" value=""> SKKD
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" name="carType" id="" value=""> K11b
					</label>
					 <label class="checkbox-inline">
					  <input type="checkbox" name="carType" id="" value=""> R30
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" name="carType" id="" value=""> R30+
					</label>
			    </div>
			  </div>
		  
		  <div class="form-group">
		    <label class="col-sm-4 control-label">地区<span class="fill-must">*</span></label>
		    <div class="col-sm-8">
		        <label class="radio-inline">
				  <input type="radio" name="area" id="" value="" checked="checked"> 全地区
				</label>
		    </div>
			    
		    <div class="col-sm-offset-4 col-sm-8">
				  <label class="radio-inline">
					  <input type="radio" name="area" id="" value="" checked="checked"> 选择地区
				  </label>
				  
				  <select id="province" multiple="multiple">
					  <option value="浙江省" selected>浙江省</option>
					  <option value="贵州省">贵州省</option>
				  </select>
				  
				  <select id="city" multiple="multiple">
					<optgroup label="浙江省">
						<option value="杭州市" selected>杭州市</option>
						<option value="宁波市">宁波市</option>
						<option value="温州市">温州市 </option>
					</optgroup>
					<optgroup label="贵州省">
						<option value="贵阳市">贵阳市</option>
						<option value="六盘水市">六盘水市</option>
						<option value="安顺市">安顺市</option>
					</optgroup>
				 </select>
		      </div>
		   </div>
			  
		  <div class="form-group">
		    <label class="col-sm-4 control-label">使用时效<span class="fill-must">*</span></label>
		    <div class="col-sm-8">
		        <label class="radio-inline">
				  <input type="radio" name="aging" id="" value="" checked="checked"> 不限
				</label>
				<label class="radio-inline">
				  <input type="radio" name="aging" id="" value="" style="margin-top: 10px;"> 从
				  <input type="text" class="form-control Wdate sheet-searchInput2" placeholder="" onFocus="WdatePicker({lang:'zh-cn'})"> 至
	  			  <input type="text" class="form-control Wdate sheet-searchInput2" placeholder="" onFocus="WdatePicker({lang:'zh-cn'})">
				</label>
		    </div>
		  </div>
		  
		  <div class="form-group">
		    <label class="col-sm-4 control-label">生效时间<span class="fill-must">*</span></label>
		    <div class="col-sm-5">
				  <input type="text" class="form-control Wdate" placeholder="请选择生效时间" onFocus="WdatePicker({lang:'zh-cn'})">
		    </div>
		  </div>
		  
		  <div class="form-group">
		    <label class="col-sm-4 control-label">截止时间<span class="fill-must">*</span></label>
		    <div class="col-sm-5">
				  <input type="text" class="form-control Wdate" placeholder="请选择生效时间" onFocus="WdatePicker({lang:'zh-cn'})">
		    </div>
		  </div>
		  
		  <div class="form-group">
		    <label class="col-sm-4 control-label">使用说明</label>
		    <div class="col-sm-5">
		       <textarea class="form-control" rows="3" placeholder=""></textarea>
		    </div>
		  </div>
			  
		  <div class="form-group">
		    <div class="col-sm-offset-4 col-sm-5 sheet-btnBar">
		      <button type="submit" class="btn btn-info sheet-btn">保存</button>
		      <button type="button" class="btn btn-default sheet-btn">取消</button>
		    </div>
		  </div>
		  
		  <div class="form-group">
		    <div class="col-sm-offset-4 col-sm-5 error-resgister">
				<span id="errorContent">错误提示错误提示错误提示</span><!-- 错误提示 -->
			</div>
		  </div>
		</form>
	</div>
	
	<script type="text/javascript">
	  $(document).ready(function() {
	  	leftMenu.initBlock4_2();//左菜单栏初始化
	  	selectEvent();//下拉框多选
	  });
	  
	  function selectEvent(){
	  		$("#province").multiselect();
	    	$("#city").multiselect({
	            includeSelectAllOption: true,
	       		enableCaseInsensitiveFiltering: true,
        	});
	  }
	</script>
  </body>
</html>

